<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/vue.js"></script>
</head>
<body>
<div id="app">

    <ul>
        <!--v-on:事件名 -->
        <li v-for="(emp , index) in emps" v-on:click="clickMe_vue">{{emp.id}}--{{emp.name}}--{{emp.age}}</li>
        <!--简写方式-->
        <li v-for="(emp , index) in emps" @click="clickMe_vue">{{emp.id}}--{{emp.name}}--{{emp.age}}</li>
    </ul>
</div>
<script>

    var app = new Vue({
        el:'#app',
        data:{
            emps:[
                {id:1,name:"小小A",age:12},
                {id:2,name:"小小B",age:15},
                {id:3,name:"小小C",age:13}
            ]
        },
        methods:{
            clickMe_vue:function () {
                alert(1)
            }
        }
    })
</script>
</body>
</html>